package com.Algorithm.HUAWEI.one20211020;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/21/13:41
 * @Description:
 * @Target: 输入一个表达式的字符串,进行计算.
 */
public class 四则运算 {
    // 如表达式 (1+2)*5+6/2+888+{1+5+[8+4*(8+9)]}


    public static void main(String[] args) {
        String ss = "3+2*{1+2*[-4/(8-6)+7]}";


        char c[] = new char[ss.length()];
        int i = 0;
        while (i<ss.length()){

            c[i] = ss.charAt(i);
            i++;
        }

        for (char c1 : c) {
            System.out.print(c1+" ");
        }

    }





}
